package Pm.Cars;

public class Motorcycle extends Vehicle{
    String hasSideCar;
    public Motorcycle(String brand, int year,String hasSideCar) {
        super(brand, year);
        this.hasSideCar = hasSideCar;
    }

    @Override
    public void dispayInfo() {
        super.dispayInfo();
        System.out.println(hasSideCar);
    }
}
